#ifndef QT_TRIGGER_EDITOR_MANAGER
#define QT_TRIGGER_EDITOR_MANAGER

#include <QWidget>
#include <qtpropertybrowser.h>
#include <QMap>
#include <QUrl>
#include <QVarintTrigger.h>
class QtTriggerEditorManager : public QtAbstractPropertyManager
{
    Q_OBJECT
public:
    QtTriggerEditorManager(QObject *parent=0);
    virtual ~QtTriggerEditorManager();
    //QtProperty * addProperty (const QString &name=QString());
    QVarintTrigger value(QtProperty* property_ptr);
public slots:
    void setValue(QtProperty * property_ptr, const QVarintTrigger & value_trigger);
    void setValueByButton(QtProperty * property_ptr);
signals:
    void valueChanged(QtProperty*,const QVarintTrigger&);
protected:
    virtual void initializeProperty (QtProperty *property);
    virtual QString	valueText (const QtProperty *property) const;
private:

    QMap<const QtProperty *, QVarintTrigger> m_propertyPtrToData;
};

#endif // QT_TRIGGER_EDITOR_MANAGER
